﻿using System;
using System.ServiceProcess;

namespace Resonance.TrainNode.WndSvcHost
{
    class Program
    {
        static void Main(string[] args)
        {

#if DEBUG
			Console.WriteLine("Starting TrainNode Service...\n\n");
			TrainNodeWCFManager trainNodeManager = new TrainNodeWCFManager();
			trainNodeManager.StartServiceHost();
			Console.WriteLine("TrainNode Service Running\n\n");
			Console.ReadLine();
			Console.WriteLine("Stopping TrainNode Service...\n\n");
			trainNodeManager.StopServiceHost();
			Console.WriteLine("TrainNode Service Stopped\n\n");
#else
			ServiceBase[] ServicesToRun;
			ServicesToRun = new ServiceBase[] 
			{ 
				new TrainNodeHostWndService() 
			};
			ServiceBase.Run(ServicesToRun);
#endif
        }
    }
}
